<template>
	<fieldset>
		<legend>我的</legend>
		<h1>支付宝余额:0.35</h1>
		<h2>模块化users的状态:{{$store.state.users.username}}</h2>
        <h1>{{nickname}}</h1>
	</fieldset>
</template>
<script>
	import { mapState } from "vuex"
	export default {
		computed: {
            //映射模块化store中的state
			...mapState("users", ['nickname'])
		}
	}
</script>
